﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Net;
using System.Text;
using System.Net.Mail;

namespace XLDL.Includes
{
    public partial class LienHe : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Button_send.Focus();
        }

        protected void Button_send_Click(object sender, EventArgs e)
        {
            Email.sendMail_LienHe(txt_hoten.Text, txt_dienthoai.Text, txt_email.Text, txt_noidung.Text);
            this.lbl_thongbao.Text = "Thông tin liên hệ đã gởi đi thành công !";
            this.txt_noidung.Text= "";
        }

        protected void Button_reset_Click(object sender, EventArgs e)
        {
            this.txt_noidung.Text= "";
            this.txt_hoten.Text = "";
            this.txt_email.Text = "";
            this.txt_dienthoai.Text = "";
        }
        
    }
}